package com.gr.catanddog_common.damin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.util.List;

@TableName("animal")
@Repository
@Data
public class Animal {
    @TableId("animal_id")
    String id;
    @TableField("user_name")
    String host;    //主人，可为空
    @TableField("image_url")
    String image;  //图片推荐
    @TableField("animal_name")
    String animalName;     //宠物名
    @TableField("sex")
    Integer sex;         //性别
    @TableField("species")
    String species;     //物种
    @TableField("age")
    String age;         //年龄
    @TableField("creat_time")
    String time = "";        //发布时间
    @TableField("weight")
    String weight;
    @TableField("introduce")
    String introduce;     //简介
    @TableField("is_adopt")
    Boolean isAdopt;    //是否已领养
    @TableField("status")
    Boolean status; //是否审核通过
    @TableField("likes")
    Integer likes;
    @TableField(exist = false)
    List<String> animalUrl;
}
